package com.example.springbootdemo.autowired;

import com.example.springbootdemo.autowired.custompkg.Test1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class AutowiredDemo {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(AutowiredDemo.class, args);

        Test1 test1 = (Test1) applicationContext.getBean("test1");
        test1.test1();
    }
}
